package com.wcx.structure.decorator;

/**
 * 项目: design-pattern-githupdemo
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2021-01-12 14:48
 **/
public class RedGemDecorator implements IEquipDecorator {

    private IEquip iEquip;

    public RedGemDecorator(IEquip iEquip) {
        this.iEquip = iEquip;
    }

    @Override
    public int calculationAttack() {
        return 10 + iEquip.calculationAttack();
    }

    @Override
    public String description() {
        return "红宝石加成";
    }
}
